package com.qd.flow.manager;

import com.qd.flow.listener.FlowListener;
import lombok.Getter;

/**
 * @author sjk
 */
@Getter
public class FlowListenerManager {
    private FlowListenerManager() {

    }

    private static class SingletonHolder {
        private static final FlowListenerManager INSTANCE = new FlowListenerManager();
    }

    public static FlowListenerManager getInstance() {
        return SingletonHolder.INSTANCE;
    }

    private FlowListener flowListener;

    public void saveFlowListener(FlowListener flowListener) {
        this.flowListener = flowListener;
    }

}
